package com.yb.sys.user.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2022-11-23
 */

//java实体类映射
@Data
@TableName("t_sys_hotel")
@AllArgsConstructor
@NoArgsConstructor
@Document("sys_hotel")
public class SysHotel implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 酒店id
     */
    @Id
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 酒店名称
     */
    private String name;

    /**
     * 酒店地址
     */
    private String address;

    /**
     * 酒店价格
     */
    private Integer price;

    /**
     * 酒店评分
     */
    private Integer score;

    /**
     * 酒店品牌
     */
    private String brand;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 酒店星级，1星到5星，1钻到5钻
     */
    private String starName;

    /**
     * 商圈
     */
    private String business;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 酒店图片
     */
    private String pic;


    @Override
    public String toString() {
        return "SysHotel{" +
            "id=" + id +
            ", name=" + name +
            ", address=" + address +
            ", price=" + price +
            ", score=" + score +
            ", brand=" + brand +
            ", city=" + city +
            ", starName=" + starName +
            ", business=" + business +
            ", latitude=" + latitude +
            ", longitude=" + longitude +
            ", pic=" + pic +
        "}";
    }
}
